import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { User, UserSchema } from '../schemas/user.schema';
import { MongooseModule } from '@nestjs/mongoose';
import { PasswordEncryptionService } from 'src/service/password.service';
import { TokenService } from 'src/service/token.service';
import { CaptchaService } from 'src/service/captcha.service';
@Module({
  imports: [
    MongooseModule.forFeature([{ name: User.name, schema: UserSchema }]),
  ],
  controllers: [UserController],
  providers: [
    UserService,
    PasswordEncryptionService,
    TokenService,
    CaptchaService,
  ],
})
export class UserModule {}
